#ifndef YEPXML_LINESEPARATEDWRITTER_HPP
#define YEPXML_LINESEPARATEDWRITTER_HPP

#include "writter.hpp"

namespace yxml
{
    /**
     * @brief Writes a element per line of a document.
     **/
    class LineSeparatedWritter: public Writter
    {
    public:
        /**
         * @brief Constructor
         * @param out The output stream to write.
         **/
        LineSeparatedWritter(ostream &out): Writter(out){}
    protected:
        void writeNode(Node &node);
        void writeHeaderTag(Document &document);
        void writeSubNodes(Node &node);
    };
}

#endif // YEPXML_LINESEPARATEDWRITTER_HPP
